<%--
  Created by IntelliJ IDEA.
  User: ykj
  Date: 16/1/10
  Time: 上午12:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/adminDialog.css"/>
<script charset="utf-8">
    $(function () {
        adminDialog.bindUpdate('user');
        adminDialog.bindUpdateCancel('user');
    });
</script>
<div class="form_div">
    <form id="user_form" class="m_form" method="post">

        <input type="hidden" id="userId" name="user.id" value="${user.id}"/>

        <div class="input_div">
            <label>手机号:</label>
            <input class="easyui-textbox m_textbox" type="text" id="phone" name="user.phone" value="${user.phone}" data-options="required:true,editable:false"/>

        </div>
        <div class="input_div">
            <label>密码:</label>
            <input class="easyui-textbox m_textbox" type="password" id="pwd" name="user.pwd" value="${user.pwd}" data-options="required:true"/>

        </div>
        <div class="input_div">
            <label>确认密码:</label>
            <input class="easyui-textbox m_textbox" type="password" validType="equals['#pwd']" value="${user.pwd}" data-options="required:true"/>

        </div>
        <div class="input_div">
            <label>真实名字:</label>
            <input class="easyui-textbox m_textbox" type="text" id="name" name="user.name" value="${user.name}" data-options="required:true"/>

        </div>
        <div class="input_div">
            <label>身份证:</label>
            <input class="easyui-textbox m_textbox" type="text" id="idCard" name="user.id_card" value="${user.idCard}"
                   data-options="required:true,validType:'length[15,18]'"/>

        </div>
        <div class="input_div">
            <label>邮箱:</label>
            <input class="easyui-textbox m_textbox" type="text" id="email" name="user.email" value="${user.email}"
                   data-options="required:true,validType:'email'"/>

        </div>
        <div class="input_div">
            <label>资产:</label>
            <input class="easyui-numberbox m_textbox" type="text" id="asset" name="user.asset" value="${user.asset}"
                   data-options="required:true,min:0,precision:2"/>

        </div>
        <div class="input_div">
            <label>收益:</label>
            <input class="easyui-numberbox m_textbox" type="text" id="earnings" name="user.earnings" value="${user.earnings}"
                   data-options="required:true,precision:2"/>

        </div>
        <div class="sub_div">
            <a id="update_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save'">提交</a>
            <a id="cancel_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'">取消</a>
        </div>
    </form>
</div>